package cn.tedu.blackhorse.mapper;

import cn.tedu.blackhorse.pojo.entity.Admin;

import cn.tedu.blackhorse.pojo.vo.AdminListItemVO;
import cn.tedu.blackhorse.pojo.vo.AdminLoginInfoVO;
import cn.tedu.blackhorse.pojo.vo.AdminStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdminMapper {
    int insert(Admin admin);

    int deleteById(Long id);

    int deleteByIds(List<Long> ids);

    int updateById(Admin admin);

    int count();

    List<AdminListItemVO> list();

    AdminStandardVO getById(Long id);

    int countByName(String username);

    AdminLoginInfoVO getLoginInfoByUsername(String username);

    int countByPermissionId(Long permissionId);

}
